using System;
using System.Text;
using InfoJetSoft.Service.XPath;

//CID 0164 //2008.12.13 //Begin
namespace InfoJetSoft.Service.XPath.Exprs
{
	/// <summary>
	/// Summary description for LocationPath.
	/// </summary>
    public class LocationPath : IExpr
	{
		public LocationPath()
		{
			//
			// TODO: Add constructor logic here
			//
        }

        public object Evaluate(ExprContext context)
        {
            return null;
        }

        //CID 0866 //2011.04.01 //Begin
        public void Visit(IExprVisitor visitor)
        {
        }
        //CID 0866 //2011.04.01 //End

        public void Print(StringBuilder buffer)
        {
        }

		public static IExpr Parse( ExprParser parser )
		{
			IExpr absoluteLocationPath = AbsoluteLocationPath.Parse( parser );
			if( absoluteLocationPath != null )
			{
                return absoluteLocationPath;
			}
			else
			{
                IExpr relativeLocationPath = RelativeLocationPath.Parse(parser);
				if( relativeLocationPath != null )
				{
                    return relativeLocationPath;
				}
			}
			return null;
		}
	}
}
//CID 0164 //2008.12.13 //End
